package com.qdlc.p2p.biz.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.qdlc.p2p.biz.service.BondCollectionService;
import com.qdlc.p2p.dal.dao.BondCollectionDao;
import com.qdlc.p2p.dal.model.BondCollectionModel;

/**
 * 债权待收Service
 *
 * @author zhangyz
 * @version 1.0
 * @since 2014-12-11
 */
@Service(value = "bondCollectionService")
@Transactional
public class BondCollectionServiceImpl implements BondCollectionService {

    @Resource
    private BondCollectionDao bondCollectionDao;

    @Override
    public List<BondCollectionModel> getCollectionModelListByBondTenderId(long tenderId) {
        return bondCollectionDao.getCollectionModelListByBondTenderId(tenderId);
    }

    @Override
    public Object[] getSumBondCollectionByTenderId(long tenderId) {
        return bondCollectionDao.getSumBondCollectionByTenderId(tenderId);
    }

    @Override
    public List<BondCollectionModel> getCollectionModelListByBondId(long bondId) {
        return bondCollectionDao.getCollectionModelListByBondId(bondId);
    }

    @Override
    public Object[] getSumBondCollectionByBondId(long bondId) {
        return bondCollectionDao.getSumBondCollectionByBondId(bondId);
    }
}
